package com.tianyalei.wolf.sample.activity.uppai.util;

import com.upyun.library.listener.UpProgressListener;

import java.io.File;
import java.util.List;

/**
 * Created by wolf on 2016/4/21.
 */
public class UploadUtil {
    public static void uploadFile(File file, String type, UpProgressListener progressListener, final UpLoadCallback callback) {
        UploadOneUtil.uploadFile(file, type, progressListener, callback);
    }

    public static void uploadFile(File file, String type, final UpLoadCallback callback) {
        UploadOneUtil.uploadFile(file, type, callback);
    }

    public static void uploadBatchFile(List<File> files, String type, final UploadBatchCallback callback) {
        new UploadBatchUtil(files, type).uploadBatchFile(callback);
    }
}
